import {Request} from "@/components/until/Request";
//获取用户列表
function getUserList(url,data){
    return Request.post(url,data);

}
//添加用户
function addUser(url,data){
    return Request.post(url,data);
}

//获取部门列表
function getDepartmentList(url,data){
    return Request.post(url,data);
}
//根据id查询用户信息
function getUserById(url,data){
    return Request.post(url,data);  
}

//修改用户信息
function updateUser(url,data){
    return Request.post(url,data);
}

//删除用户
function deleteUser(url,data){
    return Request.get(url,data);  
}

//职能下拉框
function getRoleList(url,data){
    return Request.get(url,data);
}

//获取回收站数据
function getRecycleList(url,data){
    return Request.post(url,data);
}

//恢复
function recoverUser(url,data){
    return Request.post(url,data);
}

export {getUserList,addUser,getDepartmentList,getUserById,updateUser,deleteUser,getRoleList,getRecycleList,recoverUser}